#include <QCoreApplication>

/*int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    return a.exec();
}*/
#include <iostream>
using namespace std;
int main()
{
    //Begin
    //Площадь прямоугольника
    cout<<"Begin"<<endl;
    int shirina,dlina;
    cout<<"vvedite shirinu"<<endl;
    cin>>shirina;
    cout<<"vvedite dlinu"<<endl;
    cin>>dlina;
    cout<<"ploshad="<<shirina*dlina<<endl;
    cout<<"perimetr="<<2*(shirina+dlina)<<endl;
    //Длина окружности
    int diametr;
    cout<<"vvedite diametr"<<endl;
    cin>>diametr;
    cout<<"dlina okrujnsti="<<3.14*diametr<<endl;

    //Integer
    cout<<"Integer"<<endl;
    //3
    cout<<"vvedite razmer v byte"<<endl;
    int razmer;
    cin>>razmer;
    cout<<"Kb = "<<razmer/1024<<endl;
    //4
    int A,B;
    cout<<"vverdite A"<<endl;
    cin>>A;
    cout<<"vvedite B"<<endl;
    cin>>B;
    cout<<"A vmeshaet "<<A/B<<" B"<<endl;

    //Boolean
    //3
    cout<<"Boolean"<<endl;
    cout<<"Vvedite chislo"<<endl;
    double A1;
    cin>>A1;
    int B1;
    B1=A1/2;
    if(B1==A1/2)
        cout<<"chet"<<endl;
    else
        cout<<"nechet"<<endl;
    //4
    cout<<"vvedite A2"<<endl;
    int A2,B2;
    cin>>A2;
    cout<<"vvedite B2"<<endl;
    cin>>B2;
    if(A2>2&&B2<=3)
        cout<<"true"<<endl;
    else
        cout<<"false"<<endl;
    return 0;
}
